##mystr = 'hello world and itcast and itheima and Python'
#pprint(mystr.rfind('and'))
#print(mystr[35])
#print(mystr.find('ands',15,30))
#print(mystr.index('ands'))
#print(mystr.count('and',0,20))
#print(mystr.rsplit(' '))
#print(mystr.replace('and','he'))
#print(mystr.rsplit(' ',2))
#',)
# '''''''str="Hello, Python! I love Python programming."
# index = str.find('Python')
# if index!=
# print(str.find('Python'))
# if str.find('Python')>0:
#     print(str.replace('Python','Java'))'''
# '''mystr =" hello world and itcast and itheima and Python  "
# print(mystr.upper())
# print(mystr.lower())
# print((mystr.rstrip()).capitalize())
# print(mystr.capitalize())
# print(mystr.center(100,"."))'''
# #mystr = 'hello'
# #print(mystr.center(10,'#'))
# '''name= '黄腾轩'
# list = [[1,2,3],[4,5,6],[7,8,9,10]]
# print(name.endswith('Tom',0,3))
# list_new = [a[i ]for a in list for i in range(len(a))]
# print(list_new)'''
# '''mystr = 'fall!lafjsdl!lafjdl!lfadjl!'
# print(mystr.index('!'))
# print(mystr.find('!',mystr.index('!')+1))
# def find(a):'''
# '''mystr1 = 'hello'
# mystr2 = ('hello12345')
# print(mystr1.isalpha())
# print(mystr2.isalpha())
# print(mystr1.isdigit())
# print(mystr2.isdigit())
# print(mystr1.isalnum())
# print(mystr1.isspace())'''
#
#
# '''def findstr(list,str,num):
#     index_temp=0
#     index_now = 0
#     for i in range(num):
#         index_temp=index_now
#         index_now= list.find(str,index_temp+1)
#     return index_now
# list = input('请输入列表：’）
# str = input('请输入你要找的字符：')
# num = int(input('请输入你要找第几次：'))
# print(findstr(list,str,num))'''
#
#
# '''s1 = {10,20,30,40,50,}
# s3 = {'abcdefg','silfjl'}
# print(s3)
# print(s1)
# s1 = set()
# s2 = {}
# print(type(s1))
# print(type(s2))'''
#
# '''s1 = {10,20}
# s1.add(100)
# s1.add(10)
# print(s1)
# s1.update('slfjs')
# print(s1)
# s1.remove(10)
# print(s1)
# s1.discard(10)
# print(s1.pop())
# print(s1)
# print('l' in s1)'''
#
# '''tuple1 = ('aaa','1',1,'kfds',45,45)
# print(tuple1.index(1))
# print(len(tuple1)'''
#
# name_list =['黄腾轩','黄腾峡','黄藤县']
#
# '''name = list(input('请输入您要搜索的名字：'))
#
# if name in name_list:
#     print(f'您输入的名字是{name}，名字已存在')
# else:
#     name_list.extend(name)
#     print(f'您输入的名字是{name}，名字不存在，已添加')'''
# '''
# print(name_list)
# name_list.insert(1,'黄藤县')
# print(name_list)
# del name_list[1]
# name_list.pop()
# name_list.remove('黄腾峡')
# name_list[0]='aaa'
# print (name_list)'''
#
# '''num_list = [2,4,6,8,1,3,564,14,3678,465,4,63,32,2]
# num_list.sort()w
# num_list.sort()
# num_list.reverse()
# print(num_list)
#
# i = 0
# while i<len(num_list):
#
#     print(num_list[i])
#     i = i + 1
# for i in num_list:
#     print(i)'''
#
# '''dict = {'name':'Tom','age':20,'gender':'男'}
# print(dict['name'])
# print(dict.get('nam',123))
# for key in dict.keys():
#     print(key)
# print(dict.items())
# for value in dict.values():
#     print(value)
# for key,value in dict.items():
#     print(f'{key} = {value}')'''
# '''set = {i for i in range(10) if i%2==0}
# print(set)
# list = [1,2,3,4,5,3]
# dict = {n:n**2 for n in range(10)}
# print(dict)'''
#
# '''age = int(input('请输入你的年龄：'))
#
# if age>18:
#     print('，和格牛马已成年，可以上网。')
# elif age == 18:
#     age = 18
#     print('刚满18岁耶~，可以上网。')
# else :
#     print('未成年，不可以上网。')
# print('系统关闭。')'''
#
# '''age = int (input('请输入您的年龄：'))
# if age<18:
#     print(f'您的年龄是{age}，童工一枚')
# elif age>=18 and age<=60:
#     print(f'您的年龄是{age},合法工龄')
# elif age>60:
#     print(f'您的年龄是{age}，老邓可以退休')'''
#
# '''money = 1
# seat = 1
# if money ==1:
#     if seat==1:
#         print('可以上车')
#     else:
#         print('不可以上车')
#
# elif money !=1:
#     print('穹币''''''
#
# '''import random
# computer = random.randint(0,2)
# print(computer)
# player = int(input('出剪刀输入0，出石头输入1，出布输入2：'))
# if (computer ==0 and player == 1) or (computer == 1 and player == 2)or(computer ==2 and player==0):
#     print('玩家获胜。')
# elif computer == player:
#     print('平局')
# els
#     print('电脑获胜')'''
#
#
# '''a,b = input('请输入两个数，中间用空格隔开：').split()
# a = int(a)b=int(b)'''
#
# '''h,a = input('请输入高度和底边长度：').split()
# h=int(h)
# a=int(a)
# i = 3
# num=1
# print('*'.center(50))
# while i<=h:
#     s = (a-1)/(h-1)
#
#     num =int (num+s)
#
#     print(('*'*num).center(50))
#     i+=1
# print(('*'*a).center(50))'''
#
#
# '''a=100
# sum = 0
# while a>0:
#     sum = a+sum
#     a-=1
# print('任务结束','sum的值为:',sum)
#
# j=0
# while j<=4:
#     i = 0
#     while i<=4:
#         print('*',end=' ')
#         i+=1
#     print()
#     j+=1'''
# '''a = input('请输入一个字符：')
# print(ord(a))'''
#
# '''s = int(input('请输入距离：'))
# tBike = s/3+50
# tWalk = s/1.2
# if tBike<tWalk:
#     print('Bike')
# elif tBike>tWalk:
#     print('Walk')
# else:
#     print('一样快')'''
#
# '''i = 1
# j = 1
# while j<10:
#     i=1
#     while i<=j:
#         print(f'{i}*{j}={i*j}',end = '\t ')
#         i+=1
#     print()
#     j+=1'''
#
# '''str1 = 'itheima'
# for i in str1:
#     if i =='e':
#         print('遇到e不打印')
#         break
#     print(i)'''
#
# '''n=4
# l = 70
# r = 85
# w=[10,10,20,50]
# i=0
# sum1=0
# while i <4:
#     m=1
#     while (i+m)<4:
#         n=2
#         while (i+n)<4:
#             sum = w[i]+w[i+m]+w[i+n]
#             if l<sum<r:
#                 sum1=sum1+1
#                 print(w[i],w[i+m],w[i+n])
#             n=n+1
#         m=m+1
#     i=i+1
# print(sum1)'''
# '''str = input('请输入一个字符串')
# print(str[::-1])'''
# '''figure = ('黄藤县','20','大学生')
# name,age,career=figure
# print(name,age,career)'''
#
# '''a=3
# b=5
# print(a+b,a-b,a*b,a/b)'''
#
# '''list1 = ['1','2','3']
# print(list1[1])
# print(str(list1))
# str1 = '*'.join(list1)
# print(str1)
#
# i =1
# sum=0
# while i<100:
#     if i%2:
#         sum+=i
#     else:
#         sum-=i
#     i+=1
#
# print(sum)'''
# '''i=0
# s = 0
# base =10000
# while s<=20000:
#     i+=1
#     s= base*(1+0.0325)**i
#
# print(i'''
# '''list1=[[1,2,3],[4,5,6],[7,8,9]]
# list1[0]=[ int(i) for i in input().split()]
# print(list1'''
#
# '''for m in range(180):
#     for n in range(m,m+8):
#         if m*n==6*(m+n) and m!=n:
#             print(m,n)'''
#
# '''for i in range(100):
#     if 999<i**3<10000 and 99999<i**4<1000000 and len(set(str(i**3)+str(i**4)))==10:
#             print(i)'''
# '''file = '''['a.py','b.jbg','c.gif','d.map','e.png','f.jpg','k.txt','f.hif','f.gif','h.png','m.doc']
# '''for i in file:
#     if '.jpg' in i or '.gif' in i or '.png' in i:
#         print(i)'''
#
# '''list1 = [1,2,3,4,5,6,7,8,9,0]
# print(list(enumerate(list1)))
# print(min(list1))
# print(max(list1))
# print([ i for i in range(1,100,2)])
# for index, i in enumerate(list1,2):
#     print(index,end = '\t')'''
#
# '''n = int(input('请输入鹅的数量：'))
# list_n = [int(i) for i in input('请输入每只鹅的身高，用空格隔开：').split()]
# for i in list_n:
#     print(max(list_n)-i,end = '\t')
# print()
# for i in list_n:
#     print(i -min(list_n),end = '\t')'''
#
#
# #幸运数字
# '''list_n= [int(i) for i in input('请输入两个数：').split()]
# l = list_n[1]
# r = list_n[0]
# sum = 0
# for i in range(r,l):
#     list_a = list(str(i))
#     list_b = list_a[::-1]
#     ji = 0
#     ou = 0
#     for index,n in enumerate(list_b):
#         if (index+1)%2:
#             ji = ji + int(n)
#
#         else:
#             ou = ou+int(n)
#
#     if ji ==ou:
#         sum = sum+1
# print(sum)'''
#
# '''list1 = ['name','age','gender']
# list2 = ['Tom',20,'man']
#
# dict1 ={list1[i]:list2[i] for i in range(len(list1))}
# print(dict1)
#
# counts = {'MBP':268,'HP':125,'DELL':201,'Lenovo':199,'acer':99}
#
# dict3 = {key:value for key ,value in counts.items() if value>=200}
# print(dict3)'''
#
# #精密计时
# '''str0 = '01:02:34.56 01:03:00.10'
# list_n=str0.split()
# list_a = str(list_n[0]).split(':')
# list_b = str(list_n[1]).split(':')
# hour_a = int(list_a[0])
# hour_b = int(list_b[0])
# minute_a = int(list_a[1])
# minute_b = int(list_b[1])
# s_a = list_a[2].split('.')
# s_b = list_b[2].split('.')
# sa = int(s_a[0])
# sb = int(s_b[0])
# sha = int(s_a[1])
# shb = int(s_b[1])
# print(hour_a,hour_b,minute_a,minute_b,sa,sb,sha,shb)
#
# sum_b=shb +sb*100+minute_b*60*100+hour_b*60*60*100
# sum_a = sha+sa*100+minute_a*60*100+hour_b*60*60*100
# sum = sum_b-sum_a
# print(sum)'''
#
# '''import time
# print(time.time())
# print(time.localtime())
# print(time.gmtime())'''
#
# '''if shb>=sha:
#     if sb>=sa:
#         if minute_b>=minute_a:
#             if hour_b>hour_a:
#                 sum = (shb-sha)+(sb-sa)*100+(minute_b - minute_a)*60*100+(hour_b - hour_a)*60*60*100
#         else:
#             hour_b=hou_b-1
#             if hour_b>hour_a:
#                 sum = (shb-sha)+(sb-sa)*100+(minute_b - minute_a)*60*100+(hour_b - hour_a)*60*60*100
#
#
#     else:
#         minute_b=minute_b-1
#         if minute_b>=minute_a:
#             if hour_b>hour_a:
#                 sum = (shb-sha)+(sb-sa)*100+(minute_b - minute_a)*60*100+(hour_b - hour_a)*60*60*100
#         else:
#             hour_b=hou_b-1
#             if hour_b>hour_a:
#                 sum = (shb-sha)+(sb-sa)*100+(minute_b - minute_a)*60*100+(hour_b - hour_a)*60*60*100
#
# else:
#     sb = sb-1
#     if sb>=sa:
#         if minute_b>=minute_a:
#             if hour_b>hour_a:
#                 sum = (shb-sha)+(sb-sa)*100+(minute_b - minute_a)*60*100+(hour_b - hour_a)*60*60*100
#         else:
#             hour_b=hou_b-1
#             if hour_b>hour_a:
#                 sum = (shb-sha)+(sb-sa)*100+(minute_b - minute_a)*60*100+(hour_b - hour_a)*60*60*100
#
#
#     else:
#         minute_b=minute_b-1
#         if minute_b>=minute_a:
#             if hour_b>hour_a:
#                 sum = (shb-sha)+(sb-sa)*100+(minute_b - minute_a)*60*100+(hour_b - hour_a)*60*60*100
#         else:
#             hour_b=hou_b-1
#             if hour_b>hour_a:
#                 sum = (shb-sha)+(sb-sa)*100+(minute_b - minute_a)*60*100+(hour_b - hour_a)*60*60*100
#
#
# print(sum)'''
# '''print(list_n)
# print(list_n[0])
# print(list_a)
# print(list_b)'''
#
# '''C={1,2,3}
# C.add(4)
# print(C)'''
#
# '''D = {1,2,3}
# D.update([4,5])
# print(D)'''
#
# '''def add_num2(a,b):
#     result = a+b
#     print(result)
# a = add_num2(10,20)
# print(a)'''
#
# '''def testB():
#     print(('testB start'.center(50,'*')).center(100))
#     print(('这里是testB函数执行的代码'.center(50)).center(100))
#     print(('testB end'.center(50, '*')).center(100))
# def testA():
#     print('testA start'.center(100,'-'))
#     testB()
#
# testA()
# testB()'''
#
# '''def print_line():
#     print('-'*10)
# def print_lines(num):
#     i= 0
#     while i <num:
#         print_line()
#         i+=1
# print_lines(5)'''
#
#
#
# '''def sum_num(a,b,c):
#     return a+b+c
#
# print(sum_num(10,35,6))''''''
# import time
# a= 100
# def testA():
#     print(a)
# def testB():
#     global a
#     a = 200
#     print(a)
# testA()
# testB()
# testBdef return_num():
#     return 100,200
# num1,num2 = return_num()
# print(num1)
# print(num2)
#
# dict1 = {'name':'Tom','age':18}
# a,b = dict1
# print(a)
# print(b)



